<%@ Page Language="VB" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="false" CodeFile="FMSATaxRate.aspx.vb" Inherits="Admin_FMSATaxRate" title="Admin - Employee Tax Rate Settings" %>

<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<div style="height:335px;">
<div style="position:relative; left:20px; top:0px; width:945px; height:305px; overflow:auto;">
    <span style="position:relative; left:0px; top:10px; font-family:MS Sans Serif, Arial, Verdana, Sans-Serif; font-size: 1em; font-weight:bold; color:#21334B;">
        <h1><a id="pagecontent">Admin - Employee Tax Rate Settings</a></h1>
    </span>

    <br />
    

    <asp:ObjectDataSource ID="FMSATaxRateObjectDataSource" runat="server" DataObjectTypeName="Cdm.DataCore.Budget.FMSATaxRate" TypeName="Cdm.DataCore.Budget.FMSATaxRate" 
        SelectMethod="ListByFMSAUserId" UpdateMethod="UpdateInstance" InsertMethod="SaveInstance" DeleteMethod="RemoveInstance">
        <SelectParameters>
            <asp:Parameter Direction="Input" Name="FMSAUserId" Type="Int32" />
        </SelectParameters> 
    </asp:ObjectDataSource>
    
    <span style="position:relative; left:20px; top:-15px;">
    <asp:Label ID="descriptionLabel" runat="server" Text="Enter average employee tax rate to be used on spending plans.  Enter a decimal for your rate.  For example, 0.05 should be entered for 5%."></asp:Label>
        <asp:Label ID="ErrorSummaryLabel" runat="server" CssClass="alert" Visible="false" />
       
        <asp:GridView ID="FMSATaxRatesGridView" runat="server" CssClass="gridOffsetSmall" HorizontalAlign="Center" Width="825px" CellPadding="5" 
            AutoGenerateColumns="False" DataSourceID="FMSATaxRateObjectDataSource" BorderColor="#21334B" 
            BorderStyle="Solid" GridLines="Vertical" AllowSorting="False" DataKeyNames="FMSATaxRateId, FMSAId" EmptyDataText="No current Tax Rates found.">
        <HeaderStyle CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" />
            <Columns>
                <asp:TemplateField HeaderText="Tax Rate" SortExpression="TaxRate">
                    <ItemTemplate><%#Eval("TaxRate")%></ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="FMSATaxRateTextBox" CssClass="form" runat="server" Text='<%# Bind("TaxRate") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Effective Date" SortExpression="EffectiveDate">
                    <ItemTemplate><%#Eval("EffectiveDate")%></ItemTemplate>
                    <EditItemTemplate>
                        <cc1:DateInputControl ID="EffectiveDteDateInputControl" runat="server" cssClassControl="formSmall" Value='<%# Bind("EffectiveDate") %>' />
                    </EditItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
        <AlternatingRowStyle BackColor="#E8ECF4" />
        </asp:GridView>
    </span> 
    
    <div style="position:relative; left:0px; top:0px;" runat="server">
        <asp:Panel ID="FMSATaxRateDetailsView" runat="server" Visible="false" >
            <asp:Label ID="FMSATaxRateLabel" runat="server" AssociatedControlID="FMSATaxRateTextBox" Text="FMSA Tax Rate:" CssClass="labelSmall" />
            <asp:TextBox ID="FMSATaxRateTextBox" runat="server" CssClass="form" />
            <br />
            <asp:Label ID="EffectiveDateLabel" runat="server" AssociatedControlID="EffectiveDateInputControl" Text="Effective Date:" CssClass="labelSmall" />
            <cc1:DateInputControl ID="EffectiveDateInputControl" runat="server" cssClassControl="formSmall"  />
        </asp:Panel>
    </div>    
    <asp:hiddenfield runat="server" id="FmsaTaxRateIdHiddenField" />
</div>

<div style="position:relative; left:300px; top:5px;">
    <asp:Button ID="SubmitButton" runat="server" Text="Submit" Visible="false" />
    <asp:Button ID="CancelButton" runat="server" Text="Cancel" Visible="false" />
    <asp:Button ID="FMSATaxRateAddButton" runat="server" Text="Add New Employee Tax Rate" />
    <asp:Button ID="FMSATaxRateEditButton" runat="server" Text="Edit Most Current Tax Rate" />
</div>
</div>
</asp:Content>

